package com.lzl.lazy;

/**
 * 懒汉式，静态内部类实现单例
 */
public class LazyInnerClassSingleton {


    private LazyInnerClassSingleton(){}

    public static LazyInnerClassSingleton getInstance(){
        return Lazy.INSTANCE;
    }

    private static class Lazy{
        public final static LazyInnerClassSingleton INSTANCE = new LazyInnerClassSingleton();
    }
}
